{PHP} Fatal error: Using $this when not in object context (Joomla)

Posted by Asher on Stack Overflow See other posts from Stack Overflow or by Asher
Published on 2010-04-08T06:10:37Z Indexed on 2010/04/08 6:13 UTC
Read the original article Hit count: 927

Filed under:
|

Hi all, i don't really know php and have hit a brick wall.

The problem is that my site is showing the following error...

Fatal error: Using $this when not in object context in /hermes/web07/b2350/pow.thefoodie/htdocs/index.php on line 11

This is the begining of my index.php file...

// no direct access define( 'YOURBASEPATH', dirname(FILE) ); ?> language; ?>" lang="language; ?>" >

main_body ul li { behavior: url(baseurl; ?>/templates/template ?>/css/iepngfix.htc) }

baseurl; ?>/templates/template ?>/js/pngfix.js">

baseurl; ?>/templates/template ?>/css/template_css.css" rel="stylesheet" type="text/css" media="all" />

baseurl; ?>/templates/template ?>/js/fx_styles.js"> baseurl; ?>/templates/template ?>/js/accordion.js">

// *************************** // // Template Parameters // // ***************************

$h1 = $this->params->get("logo"); $linked_h1 = ($this->params->get("logoLinked", 1) == 0)?"false":"true"; $h1_title = $this->params->get("logoTitle"); $h2_motto = $this->params->get("logoMotto");

// Please do NOT change this unless you know what you doing.

$template_path = $this->baseurl.'/templates/'.$this->template; // template path

$default_font = "default";

// ****************************

?>

Any help would be great as i am completely lost.

© Stack Overflow or respective owner

Related posts about php

Related posts about joomla